package kaler.radiovirsa.app.prefrence;

import android.content.Context;
import android.content.SharedPreferences;

public class SaveSettings {
	Context context;
	SharedPreferences.Editor editor;
	SharedPreferences settings;
	String PREFS_NAME = "radiodhamal";

	public SaveSettings(Context cntxt) {
		context = cntxt;
		settings = context.getSharedPreferences(PREFS_NAME,
				context.MODE_WORLD_WRITEABLE);
		editor = settings.edit();

	}

	public void setRadioPlaying(boolean radio_state) {
		editor.putBoolean("radio_state", radio_state);
		editor.commit();
	}

	public boolean isRadioPlaying() {
		return settings.getBoolean("radio_state", false);
	}
}
